package com.manage.modules.mapper;

import com.manage.modules.domain.TBaseSurfMin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 地面分钟要素Mapper接口
 *
 * @author wx
 * @date 2021-09-08
 */
public interface TBaseSurfMinMapper extends BaseMapper<TBaseSurfMin> {
    /**
     * 查询每个站点最新的地面要素
     */
    @Select(value = "SELECT * FROM t_base_surf_min \n" +
            "WHERE surf_id IN (\n" +
            "\tSELECT max( surf_id ) FROM t_base_surf_min GROUP BY station_id_c )")
    List<TBaseSurfMin> selectNewGroupByStationIdc();
}
